<div id="userResults">

   {if $count eq 0}
   	No Results Found
   	
   {else}
      <div id="numResults">
      <h2>Results Found: {$count}</h2>
      </div>
   	<br/>
   	<div id="users">
         {section name = i loop = $users}	
   		 <div id="userContainer">
   				<a class="edit" href="user.php?action=edit&id={$users[i].id}">Edit</a>
   				<a class="delete" href="user.php?action=delete&id={$users[i].id}">Delete</a>
               <a class="userDetails" href="userdetail.php?id={$users[i].id}">
                  <p class="userList"><span class="users">User Id: </span><span class="value">{$users[i].id}</span></p> <br/>
      				<p class="userList"><span class="users">First name: </span><span class="value">{$users[i].firstname}</span></p> <br/>
      				<p class="userList"><span class="users">Last name: </span><span class="value">{$users[i].lastname}</span></p> <br/>
      				<p class="userList"><span class="users">Email: </span><span class="value">{$users[i].email}</span></p> <br/>
      				<p class="userList"><span class="users">Role: </span><span class="value">{$users[i].role}</span></p> <br/>
      			</a>
          </div>
         {/section}
      </div>
   {/if}
</div>
